package cn.tedu.mybatisdb4.mapper;

import cn.tedu.mybatisdb4.entity.Product;
import cn.tedu.mybatisdb4.entity.ProductVO1;
import cn.tedu.mybatisdb4.entity.ProductVO2;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ProductMapper {
    int insertProduct(Product product);
    ProductVO1 selectProductById(Integer id);
    List<ProductVO2> selectProduct(Product product);
    int deleteProduct(Integer id);
    int updateProduct(Integer id);
}
